-- GENERATED SPELL FOR [Possessed Iskalder] --


function spell0_30924(pUnit, Event) --@Ancient Curse,Self--
pUnit:FullCastSpellOnTarget(60121,pUnit)
pUnit:RegisterEvent('Sorts_30924', 30000, 1)
end

function spell1_30924(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30924', 653, 1)
end

function spell2_30924(pUnit, Event) --@Heroic Leap,n/a--
pUnit:FullCastSpellOnTarget(60108,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30924', 0, 1)
end

function spell3_30924(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(57846,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30924', 607, 1)
end

function Sorts_30924(pUnit, Event)
local choix_sorts_30924 = math.random(0, 3)
if choix_sorts_30924 == 0 then
pUnit:RegisterEvent('spell0_30924', 1, 1)
end
if choix_sorts_30924 == 1 then
pUnit:RegisterEvent('spell1_30924', 1, 1)
end
if choix_sorts_30924 == 2 then
pUnit:RegisterEvent('spell2_30924', 1, 1)
end
if choix_sorts_30924 == 3 then
pUnit:RegisterEvent('spell3_30924', 1, 1)
end
end

function mob30924_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30924', math.random(1500, 3000), 1)
end

function mob30924_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30924_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30924_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30924, 1, 'mob30924_Action')
RegisterUnitEvent(30924, 2, 'mob30924_Leave')
RegisterUnitEvent(30924, 3, 'mob30924_Kill')
RegisterUnitEvent(30924, 4, 'mob30924_Die')
